<?php /* Smarty version Smarty-3.0.7, created on 2012-10-09 21:59:46
         compiled from "./_adm/_adm_mct_temp/_adm_places.mct" */ ?>
<?php /*%%SmartyHeaderCode:1499050742dd25f5ad4-90680725%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c71288c7ed02a48bb2a54b1f7b76fa33a1d81109' => 
    array (
      0 => './_adm/_adm_mct_temp/_adm_places.mct',
      1 => 1349181902,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1499050742dd25f5ad4-90680725',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php echo $_smarty_tpl->getVariable('breakcum')->value;?>

<span id="scrollToHere"></span>
<div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all form-container">
		<div class="portlet-header ui-widget-header"><span class="ui-icon ui-icon-circle-arrow-s"></span><span id="row_title">Thêm điểm khởi hành </span></div>
		<div class="portlet-content">
               <form name='frm_add' method='post' action='?obj=Places' enctype="multipart/form-data" >
               <table width='100%' class="listtable" border="0" cellpadding="2" cellspacing="1">
    			
                <span id="edit"></span>
                <span id="CatId"></span>
    				<tr class="row1" align="left" valign="top">
    					<td align="left" valign='top' width="20%" style="border-right:1px"><b>Điểm khởi hành: <font color="red">*</font></b></td>
    					<td>
                          <div id="tn_name">  <input name='cat_title' id="cat_title" type='text' value='' size='30'/></div> 
                        </td>
    				</tr>
                    <tr class="row1" align="left" valign="top">
    					<td align="left" valign='top' width="20%" style="border-right:1px"><b>Thứ tự:</b></td>
    					<td>
    						<div id="tn_order"><input name='cat_order' id="cat_order" type='text' value='0' size='9'/></div>
    					</td>
    				</tr>
    				<tr class="row1" align="left" valign="top">
    					<td valign='top'></td>
    					<td>
                        <div id="btn_submit">
                        <input class="ui-state-default ui-corner-all" type='submit' name='add' value='Thêm'/> <input type="reset" value="Hủy bỏ" class="ui-state-default ui-corner-all" />
                        </div>
                        </td>
    				</tr>
    				
    			</table>   
                </form>
        </div>
</div>        
<div class="cach"></div>
<div class="hastable">
    <div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all form-container">
    		<div class="portlet-header ui-widget-header"><span class="ui-icon ui-icon-circle-arrow-s"></span>Danh sách điểm khởi hành</div>
    		<div class="portlet-content">
                	<form name="myform" method='post' action='?obj=Places'>
                        <input type="hidden" name="flag" value="0" />
            			<table class="listtable" cellpadding="2" cellspacing="1" width="100%">
            				<thead>
                            <tr style="font-weight: bold;">
            					<th width="6%">Vị trí</th>
            					<th style="width: 76%">Điểm khởi hành</th>
            					<th>Chức năng</th>
            				</tr>
                            </thead>
                            <tbody>
                            <?php if ($_smarty_tpl->getVariable('cate')->value){?>
                                <?php  $_smarty_tpl->tpl_vars['cat'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('cate')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['cat']->total= $_smarty_tpl->_count($_from);
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['dm']['total'] = $_smarty_tpl->tpl_vars['cat']->total;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['dm']['index']=-1;
if ($_smarty_tpl->tpl_vars['cat']->total > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['cat']->key => $_smarty_tpl->tpl_vars['cat']->value){
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['dm']['index']++;
?>
                                    <tr class="row1">
                                        <td width="6%" style="text-align: center;" >
                                            <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['cat']->value['tkh_id'];?>
" name="order_id_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['dm']['index']+1;?>
"/> 
                                            <input type="text" value="<?php echo $_smarty_tpl->tpl_vars['cat']->value['tkh_order'];?>
" maxlength="15" size="3" name="order_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['dm']['index']+1;?>
"/>
                                        </td>
                                        <td width="76%" align="left" id="cat_<?php echo $_smarty_tpl->tpl_vars['cat']->value['tkh_id'];?>
">
                                            <div style="margin-left:5px;"><a href="javascript:;" onclick="xajax_editPlaces(<?php echo $_smarty_tpl->tpl_vars['cat']->value['tkh_id'];?>
)"><b><?php echo $_smarty_tpl->tpl_vars['cat']->value['tkh_name'];?>
</b></a></div>
                                        </td>
                                        <td align="center">
                                            <a class="btn_no_text btn ui-state-default ui-corner-all tooltip" style="padding:  1px;">
                                                <input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['cat']->value['tkh_id'];?>
" name="checkbox_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['dm']['index']+1;?>
" id="checkbox"/>
                                            </a>
                                            <a class="btn_no_text btn ui-state-default ui-corner-all tooltip" href="javascript:;" onclick="xajax_editPlaces(<?php echo $_smarty_tpl->tpl_vars['cat']->value['tkh_id'];?>
)" title="Sửa điểm khởi hành">
                									<span class="ui-icon ui-icon-wrench"></span>
            								</a>
                                            <a class="btn_no_text btn ui-state-default ui-corner-all tooltip" onclick="check_del_row(<?php echo $_smarty_tpl->tpl_vars['cat']->value['tkh_id'];?>
)" href="javascript:;" title="Xóa điểm khởi hành">
            									<span class="ui-icon ui-icon-circle-close"></span>
            								</a>
                                        </td>
                                    </tr>
                                <?php }} ?>
                                <input type="hidden" value="<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['dm']['total'];?>
" name="total"/>
                                    <tr class="row1">
                                        <td align="center">
                                            <input class="ui-state-default ui-corner-all" type="submit" value="Thứ Tự" name="order"/>
                                        </td>
                                        <td align="right" colspan="2">     
                                            <input class="ui-state-default ui-corner-all" type="button" onclick="checkall()" value="Đánh Dấu Tất Cả" id="CheckAll" name="CheckAll"/>     
                                            <input class="ui-state-default ui-corner-all" type="button" onclick="uncheckall()" value="Bỏ Đánh Dấu" id="UnCheckAll" name="UnCheckAll"/> 
                                             <input class="ui-state-default ui-corner-all" type="submit" onclick="return check_checkbox();" value=" Xoá " name="delete"/>  
                                        </td>
                                    </tr>
                                <?php }else{ ?>
                                <tr class="row1">
                                    <td colspan="3" style="text-align: center;"> Chưa có điểm khởi hành nào!</td>
                                </tr>
                            <?php }?>
            				<!--<?php echo $_smarty_tpl->getVariable('list_catalogy_post')->value;?>
-->
                            </tbody>
            			</table>
            			</form>
            </div>
    </div>
</div>            
<script>
function scrollWin(){
        $('html,body').animate({
        scrollTop: $("#scrollToHere").offset().top
        }, 1000);
}
</script>